package com.easyadmin.entity.constants;

public class Constants {
    public static final Integer LENGTH_2 = 2;
    public static final Integer LENGTH_6 = 6;
    public static final Integer LENGTH_8 = 8;
    public static final Integer LENGTH_16 = 16;
    public static final Integer LENGTH_10 = 10;
    public static final Integer LENGTH_15 = 15;
    public static final Integer LENGTH_20 = 20;
    public static final Integer LENGTH_28 = 28;
    public static final Integer LENGTH_30 = 30;
    public static final Integer LENGTH_32 = 32;
    public static final Integer LENGTH_50 = 50;
    public static final Integer LENGTH_60 = 60;
    public static final Integer LENGTH_100 = 100;
    public static final Integer LENGTH_200 = 200;
    public static final Integer LENGTH_128 = 128;
    public static final Integer LENGTH_300 = 300;
    public static final Integer LENGTH_1000 = 1000;
    public static final Integer LENGTH_50000 = 50000;


    public static final Integer ZERO = 0;
    public static final Integer ONE = 1;
    public static final Integer TWO = 2;

    public static final String EXCEL_SUFFIX = ".xlsx";

    public static final String SQL_SUFFIX = ".sql";

    public static final String ADMIN_SESSION_KEY = "admin_session_key";

    public static final long FILE_SIZE_1M = 1048576;  //1M

    public static final long FILE_SIZE_500M = 104857600 * 5;
    /**
     * 接口请求时效时间
     */
    public static final long VALID_TIME = 1000 * 60 * 20;

    public static final String ZIP_SUFFIX = ".zip";

    public static final String NO_PERMISSION_INFO = "你没有任何权限，请先联系管理员分配权限";

    public static final String CHECK_CODE_KEY = "check_code";

    /**
     * 默认跟节点菜单，前端默认为0，组件选中存在问题
     */
    public static final Integer DEFAULT_ROOT_MENUID = 10000000;

    /**
     * cookie
     */
    public static final String COOKIE_KEY = "login_user_info";
}
